

{if empty($patientList)}
    <tr>
        <td colspan='6'>{translate}There's no patient{/translate}</td>
    </tr>
{else}
    {foreach from=$patientList item=patient}
    <tr>
        <td>{$index++}</td>
        <td style="font-weight: bold;"><a href="javascript:viewMedicalRecord({$patient.person_id});">{$patient.name}</a></td>
        <td>{$patient.patient_code}</td>
        <td>{$patient.birth_year} ({$patient.age})</td>
        <td>{if $patient.gender == male}{translate}Male{/translate}{else}{translate}Female{/translate}{/if}</td>
        <td>
           {$patient.created}   
        </td>
    </tr>
    {/foreach}
{/if}